package pri.zxx.testdemo;

import pri.zxx.learndemo.lambdaandstream.functions.Out;

import java.util.LinkedHashMap;

/**
 * @author zxx
 * @desc
 * @createTime 2019-08-22-上午 10:48
 */
public class HashSetTest {
    public static void main(String[] args) {
        LinkedHashMap<String, String> map = new LinkedHashMap<>();
        map.put("Name", "名称");
        map.put("Key", "关键词");
        map.put("Password", "密码");
        map.put("Phone", "手机");
        map.put("Address", "地址");
        map.keySet().forEach(Out::print);
        System.out.println(" ");
        String[] objects1 = map.values().toArray(new String[0]);
        for (String x : objects1) {
            Out.print(x);
        }
    }
}
